//
//  Consultation.m
//  Cabinet
//
//  Created by Florent Montsegur on 27/04/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "Consultation.h"
#import "Person.h"
#import "CabinetDefines.h"


@implementation Consultation
@dynamic Diagnostic;
@dynamic Paye;
@dynamic Payement;
@dynamic CreationDate;
@dynamic Reference;
@dynamic Observations;
@dynamic Somme;
@dynamic Acte;
@dynamic Traitement;
@dynamic EtatFeuille;
@dynamic Person;


- (int) FeuilleDonnee
{
    return ([[self EtatFeuille] intValue] == FeuilleDonnee ? 1 : 0 );
}

- (void) setFeuilleDonnee:(int)value
{
    if(value == 1)
        [self setEtatFeuille:[NSNumber numberWithInt:FeuilleDonnee]];
}

- (int) FeuilleGardee
{
    return ([[self EtatFeuille] intValue] == FeuilleGardee ? 1 : 0 );
}

- (void) setFeuilleGardee:(int)value
{
    if(value == 1)
        [self setEtatFeuille:[NSNumber numberWithInt:FeuilleGardee]];
}

- (int) FeuilleNonFaite
{
    return ([[self EtatFeuille] intValue] == FeuilleNonFaite ? 1 : 0 );
}

- (void) setFeuilleNonFaite:(int)value
{
    if(value == 1)
        [self setEtatFeuille:[NSNumber numberWithInt:FeuilleNonFaite]];
}

@end
